import java.io.*;
import java.rmi.*;

public class Client{

	public static void main( String args[] )
 	{
		String registryHost = new String("localhost");
		int registryPort = 2000;
		
		String registryObject = new String( "processor");
	 
		try{
			String registryURL = "rmi://" + registryHost + ":" + registryPort + "/" + registryObject;
			
			ProcessorInterface myProcessor = (ProcessorInterface)Naming.lookup(registryURL);
			System.out.println("Lookup Complete, Remote Object Obtained ");
			
			String message = myProcessor.UserLogin("Kunal Cholera");
			
			System.out.println("SERVER :" +message );

		}catch (Exception e ){ System.out.println("Exception : " +e );}
	
	}//end main()

}//end Client()
